package com.fast.services.impl;

import com.fast.dao.SysUserMapper;
import com.fast.entity.SysUser;
import com.fast.services.SysUserService;
import com.fast.utils.service.BaseServiceImpl;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by xiehaitao on 2017/9/6.
 */
@Service
@AllArgsConstructor
public class SysUserServiceImpl extends BaseServiceImpl<SysUser> implements SysUserService {

    SysUserMapper sysUserMapper;


    @Override
    public List<String> queryAllPerms(Long userId) {
        return sysUserMapper.queryAllPerms(userId);
    }

    @Override
    public int updatePassword(Long userId, String password, String newPassword) {
        return sysUserMapper.updatePassword( userId , password , newPassword);
    }

}
